package com.itheima.properties;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.nio.charset.Charset;
import java.util.Properties;

/*
Properties   加载和 保存方法
 */
public class Demo03 {


    public static void main(String[] args) throws IOException {

        Properties prop = new Properties();
      //  prop.load(new FileReader("day13\\abc.properties", Charset.forName("gbk")));

        prop.load( new FileInputStream("day13\\abc.properties"));
        System.out.println(prop);

    }
}
